<!DOCTYPE html>
<head>
	<%if session[:language] == "vi"%>
		<% content_for :title,  t("yourprofile")+ @user_profile.firstname + " " + @user_profile.lastname %>
	<%else%>
		<% content_for :title,   @user_profile.firstname + " " + @user_profile.lastname + t("yourprofile") %>
	<%end%>	
</head>
<head>
	
</head>
<body id="login-page">
	<p id="notice">
		<%= notice %>
	</p>
	<div class="crumb_nav">
		<a href="index.html"><%= t :home %></a> &gt;&gt; <%= @user_profile.firstname%> <%= @user_profile.lastname %>
	</div>
	<div class="title">
		<span class="title_icon"><img src="/bullet1.gif" alt="" title="" /></span><%= t :profile %>
	</div>
	<div class="feat_prod_box_details">
		<div class="prod_img">
			<b><p class="avatar"><%= t :avatar %></p></b>
			<img src="<%= @user_profile.avatar.url(:small) %>" alt="" title="" border="0" />
			<br />
			<br />
		</div>
		<div class="prod_det_box1">
			<b><p class="avatar"><%= t :subprofile %></p></b>
			<div class="box_top"></div>
			<div class="box_center">
				<p>
					<div class="profile_row">
						<b class="profile"><%= t :firstname%></b>
						<b><span class="profile_value"><%= @user_profile.firstname %></span></b>
					</div>
				</p>

				<p>
					<div class="profile_row">
						<b class="profile"><%= t :lastname%></b>
						<b><span class="profile_value"><%= @user_profile.lastname %></span></b>
					</div>
				</p>

				<p>
					<div class="profile_row">
						<b class="profile"><%= t :mssv %></b>
						<b><span class="profile_value"><%= @user_profile.mssv %></span></b>
					</div>
				</p>

				<p>
					<div class="profile_row">
						<b class="profile"><%= t :address %></b>
						<b><span class="profile_value"><%= @user_profile.address %></span></b>
					</div>
				</p>

				<p>
					<div class="profile_row">
						<b class="profile"><%= t :birthday %></b>
						<b><span class="profile_value"><%= @user_profile.birth_of_day %></span></b>
					</div>
				</p>
				<% if session[:user] != nil && session[:user].id == @user_profile.user_id%>
				<p class="link">
					<%if session[:language] == "vi"%>
						<a href="<%= edit_user_profile_path(@user_profile) %>?lang=vi" ><button  class="edit"><%= t :edit %></button></a>
					<%else%>
						<a href="<%= edit_user_profile_path(@user_profile) %>" ><button  class="edit"><%= t :edit %></button></a>
					<%end%>
				</p>
				<%end%>
				<div class="clear"></div>
			</div>

			<div class="box_bottom"></div>
		</div>
		<div class="clear"></div>
	</div>
</body>
</html>
